package com.jjyu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jjyu.entity.UserFavoriteRestaurant;

import java.util.*;

/**
 * 用户餐厅收藏服务接口
 */
public interface UserFavoriteRestaurantService extends IService<UserFavoriteRestaurant> {
    /**
     * 根据用户ID获取收藏列表
     */
    List<UserFavoriteRestaurant> getFavoritesByUserId(Integer userId);
    boolean existsByUserIdAndRestaurantId(Integer userId, Integer restaurantId);

}
